@use "utils/functions";
@use "utils/variables";

.remove-image {
    position: relative;
    display: inline-block;
}

.remove-image__img {
    display: flex;
    overflow: hidden;
    width: 128px;
    height: 128px;
    align-items: center;
    justify-content: center;
    border: 1px solid functions.alpha-color(variables.$black, 0.15);
    border-radius: 4px;
    background: variables.$white;

    img {
        max-width: 100%;
        max-height: 100%;
    }
}

.remove-image__btn {
    position: absolute;
    top: -8px;
    right: -9px;
    display: flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 40px;
    background: functions.alpha-color(variables.$black, 0.8);
    color: white;
    font-size: 20px;

    &:hover {
        background: variables.$black;
    }

    span {
        margin-left: 1px;
        line-height: 0;
    }
}
